package highlighter.ast.impl;

import java.util.ArrayList;

import highlighter.ast.IASTNode;
import highlighter.visitor.IASTVisitor;

public class ParamList implements IASTNode {

	private ArrayList<Parameter> paramList;
	
	public ParamList()
	{
		paramList = new ArrayList<Parameter>();
	}
	
	public ParamList(Parameter stmt)
	{
		paramList = new ArrayList<Parameter>();
		paramList.add(stmt);
	}
	
	public void addParam(Parameter stmt)
	{
		paramList.add(stmt);
	}
	
	public ArrayList<Parameter> getParamList()
	{
		return this.paramList;
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
